package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.ShiftBeanMapper;
import com.billing.model.entity.TShift;
import com.billing.service.ShiftService;

@Service
public class ShiftServiceImpl implements ShiftService {
	
	@Resource
	private ShiftBeanMapper 	shiftBeanMapper; 
	
	public List<TShift> selectTShiftList(int organizationid,int currentPage, int pageSize) {
		return shiftBeanMapper.selectTShiftList(organizationid,currentPage, pageSize);
	}

	public int selectTShiftNum(int organizationid) {
		return shiftBeanMapper.selectTShiftNum(organizationid);
	}

	public TShift getTShift(int id) {
		return shiftBeanMapper.getTShift(id);
	}

	public int updateTShift(TShift shift) {
		return shiftBeanMapper.updateTShift(shift);
	}

	public int deleteTShift(int id) {
		return shiftBeanMapper.deleteTShift(id);
	}

	public int insertTShift(TShift shift) {
		return shiftBeanMapper.insertTShift(shift);
	}

	public TShift getSchedulingTShift(int id) {
		return shiftBeanMapper.getSchedulingTShift(id);
	}

	public TShift getTShiftByid(int id) {
		return shiftBeanMapper.getTShiftByid(id);
	}

}
